export default {
  changeState(state, { attr, params }) {
    state[attr] = params;
  },
  SET_USERDATA(state, data) {
    state.userData = data;
    //state.isLogin = true;
  },
  SET_TOKEN(state, token) {
    state.token = token;
  },
  SET_LOGIN(state, isLogin) {
    state.isLogin = isLogin;
  },
  SET_EMAIL(state, email) {
    state.email = email;
  },
  SET_MOBILE(state, mobile) {
    state.mobile = mobile;
  },
  SET_ISAPPINFO(state, payload) {
    (state.isApp = payload), (state.appToken = payload);
  },
  SET_ISASSETS(state, payload) {
    state.is_assets = payload;
  },
  SET_LANG(state, payload) {
    state.lang = payload;
  },

  SET_H5URL(state, data) {
    state.h5Url = data;
  },
  SET_AREAID(state, data) {
    state.areaId = data;
  },
  SET_GEADE(state, data) {
    state.grade = data;
  },
  SET_HEADHeight(state, payload) {
    state.headHeight = payload;
  },
  SET_FOOTHeight(state, payload) {
    state.footHeight = payload;
  },
  SET_HELPIN(state, data) {
    state.helpIN = data;
  },
  SET_HELPID(state, data) {
    state.helpID = data;
  },
  SET_IFRAME_SRC(state, src) {
    state.iframeSrc = src;
    localStorage.iframeSrc = src;
  },
  SET_CS_SRC(state, src) {
    state.csSrc = src;
    localStorage.csSrc = src;
  },
  SET_LUCKY_INFO(state, data) {
    state.luckyInfo = data;
  },
  SET_TAX_INFO(state, data) {
    state.taxInfo = data;
  },
};
